home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC]
/
NeXTSTEP 3.3 Dev Intel.iso
/
NextDeveloper
/
Source
/
GNU
/
cctools
/
libstuff
/
round.c
< prev
Wrap
C/C++ Source or Header
|
1991-10-18
|
156b
|
15 lines
#include "stuff/round.h"
/*
* round() rounds v to a multiple of r.
*/
long
round(
long v,
unsigned long r)
{
r--;
v += r;
v &= ~(long)r;
return(v);
}